package com.yanqu.road.entity.activity.biaoju;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.utils.date.DateHelper;

/**
 * 镖局优镖数据
 */
@FieldTypeAnnotation(tableName = "t_c_biaoju_best_escort", desc = "镖局优镖")
public class CrossBiaoJuBestEscortData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(update = true, isIndex = true, desc = "镖唯一id")
    private int uniqueId;
    @FieldTypeAnnotation(select = true, update = true, isIndex = true, desc = "商会分组")
    private int unionGroup;
    @FieldTypeAnnotation(desc = "轮次")
    private int round;
    @FieldTypeAnnotation(desc = "镖类型id,废弃")
    private int escortId;
    @FieldTypeAnnotation(desc = "镖品质")
    private int quality;
    @FieldTypeAnnotation(desc = "目标城市,废弃")
    private int cityId;
    @FieldTypeAnnotation(desc = "镖生成时间")
    private long createTime;
    @FieldTypeAnnotation(desc = "最近一次被谁接了")
    private long takeUserId;
    @FieldTypeAnnotation(desc = "最近一次被接镖时间")
    private long takeTime;
    @FieldTypeAnnotation(desc = "剩余数量")
    private int remainNum;
    @FieldTypeAnnotation(desc = "总数量")
    private int totalNum;

    public CrossBiaoJuBestEscortData() {
    }

    public CrossBiaoJuBestEscortData(int activityId, int uniqueId, int unionGroup, int round, int quality, int num) {
        this.activityId = activityId;
        this.uniqueId = uniqueId;
        this.unionGroup = unionGroup;
        this.round = round;
        this.createTime = DateHelper.getCurrentTime();
        this.quality = quality;
        this.remainNum = num;
        this.totalNum = num;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getUniqueId() {
        return uniqueId;
    }

    public void setUniqueId(int uniqueId) {
        this.uniqueId = uniqueId;
    }

    public int getUnionGroup() {
        return unionGroup;
    }

    public void setUnionGroup(int unionGroup) {
        this.unionGroup = unionGroup;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    @Deprecated
    public int getEscortId() {
        return escortId;
    }

    public void setEscortId(int escortId) {
        this.escortId = escortId;
    }

    @Deprecated
    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
        setUpdateOption();
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
        setUpdateOption();
    }

    public long getTakeUserId() {
        return takeUserId;
    }

    public void setTakeUserId(long takeUserId) {
        this.takeUserId = takeUserId;
        setUpdateOption();
    }

    public long getTakeTime() {
        return takeTime;
    }

    public void setTakeTime(long takeTime) {
        this.takeTime = takeTime;
        setUpdateOption();
    }

    public int getQuality() {
        return quality;
    }

    public void setQuality(int quality) {
        this.quality = quality;
        setUpdateOption();
    }

    public int getRemainNum() {
        return remainNum;
    }

    public void setRemainNum(int remainNum) {
        this.remainNum = remainNum;
        setUpdateOption();
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
        setUpdateOption();
    }
}
